package GUI.Report;
/**
 * this is the ReportManage window GUI class. thru that window user can
 * generate reports
 */
import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;

import GUI.Course.CourseManage;
import GUI.Dog.DogManage;
import GUI.Test.TestManage;

public class ReportManage extends  JFrame
{
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public ReportManage() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(600, 500);
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		setTitle("\u05D3\u05D5\u05D7\u05D5\u05EA");
		getContentPane().setLayout(null);
		
		JButton button_2 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
				CourseManage coursewindow=new CourseManage();
				coursewindow.setVisible(true);
				
				
				
			}
		});
		button_2.setBounds(431, 178, 111, 23);
		getContentPane().add(button_2);
		
		JButton button_1 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				TestManage testwindow=new TestManage();
				testwindow.setVisible(true);
				
			}
		});
		button_1.setBounds(431, 292, 111, 23);
		getContentPane().add(button_1);
		
		JButton button = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button.setFont(new Font("David", Font.BOLD, 18));
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				ReportManage reportwindow=new ReportManage();
				reportwindow.setVisible(true);
			}
		});
		button.setBounds(431, 236, 111, 23);
		getContentPane().add(button);
		
		JButton btnNewButton = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		btnNewButton.setFont(new Font("David", Font.PLAIN, 14));
		btnNewButton.setBounds(431, 126, 111, 23);
		getContentPane().add(btnNewButton);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		panel.setBounds(10, 104, 413, 261);
		getContentPane().add(panel);
		
		JButton button_3 = new JButton("\u05D1\u05D7\u05E8");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				ExitFromUnitReport show = null;
				try {
					show=new ExitFromUnitReport();
				} catch (SQLException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (Exception e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
			    show.setVisible(true);
				dispose();
				
			}
		});
		button_3.setBounds(10, 79, 66, 23);
		panel.add(button_3);
		
		JButton button_4 = new JButton("\u05D1\u05D7\u05E8");
		button_4.setFont(new Font("David", Font.PLAIN, 14));
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				StatisticsReport show1;
				show1=new StatisticsReport();
			    show1.setVisible(true);
				dispose();
				

			}
		});
		button_4.setBounds(10, 140, 66, 23);
		panel.add(button_4);
		
		JLabel label = new JLabel("\u05D9\u05E6\u05D9\u05E8\u05EA \u05D3\u05D5\"\u05D7 \u05D4\u05DE\u05E6\u05D9\u05D2 \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E2\u05DC \u05D4\u05DB\u05DC\u05D1\u05D9\u05DD \u05E9\u05D9\u05E6\u05D0\u05D5 \u05DE\u05D4\u05D9\u05D7\u05D9\u05D3\u05D4 ");
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		label.setFont(new Font("David", Font.PLAIN, 14));
		label.setBounds(75, 82, 328, 14);
		panel.add(label);
		
		JLabel label_1 = new JLabel("\u05D9\u05E6\u05D9\u05E8\u05EA \u05D3\u05D5\"\u05D7 \u05D4\u05DE\u05E6\u05D9\u05D2 \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05E1\u05D8\u05D8\u05D9\u05E1\u05D8\u05D9\u05D9\u05DD \u05D1\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		label_1.setHorizontalAlignment(SwingConstants.RIGHT);
		label_1.setFont(new Font("David", Font.PLAIN, 14));
		label_1.setBounds(77, 143, 326, 14);
		panel.add(label_1);
		
		JLabel label_2 = new JLabel("\u05D9\u05E6\u05D9\u05E8\u05EA \u05D3\u05D5\"\u05D7 \u05D4\u05DE\u05E6\u05D9\u05D2 \u05D0\u05EA \u05D0\u05D7\u05D5\u05D6 \u05D4\u05DB\u05DC\u05D1\u05D9\u05DD \u05E9\u05E0\u05DB\u05E0\u05E1\u05D5 \u05DC\u05D9\u05D7\u05D9\u05D3\u05D5\u05EA \u05D4\u05E9\u05D5\u05E0\u05D5\u05EA");
		label_2.setHorizontalAlignment(SwingConstants.RIGHT);
		label_2.setFont(new Font("David", Font.PLAIN, 14));
		label_2.setBounds(77, 198, 326, 14);
		panel.add(label_2);
		
		JButton button_5 = new JButton("\u05D1\u05D7\u05E8");
		button_5.setFont(new Font("David", Font.PLAIN, 14));
		button_5.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) 
			{
			EnterEachUnitByYear reportwindow = null;
			try {
				reportwindow = new EnterEachUnitByYear();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			reportwindow.setVisible(true);
			dispose();
			
			}
		});
		button_5.setBounds(10, 195, 66, 23);
		panel.add(button_5);
		
		JLabel label_3 = new JLabel("\u05D1\u05D7\u05E8 \u05D1\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D4\u05E8\u05E6\u05D5\u05D9\u05D9\u05D4 :");
		label_3.setHorizontalAlignment(SwingConstants.RIGHT);
		label_3.setFont(new Font("David", Font.PLAIN, 16));
		label_3.setBounds(123, 34, 165, 23);
		panel.add(label_3);
		
		JButton button_6 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_6.setFont(new Font("David", Font.PLAIN, 14));
		button_6.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		button_6.setBounds(10, 388, 128, 23);
		getContentPane().add(button_6);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				DogManage dogwindow=new DogManage();
				dogwindow.setVisible(true);
				
			}
		});
		ImageIcon ic=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_1.setBounds(-13, -84, 612, 610);
		getContentPane().add(lblNewLabel_1);
		
		ImageIcon ic1=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_2 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_2.setBounds(0, 0, 413, 374);
		panel.add(lblNewLabel_2);
	}
}
